package ch4;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Prize {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("请输入名次：");
        int level = in.nextInt();
        //等值判断
        switch (level) {

            case 1:// level==1
                System.out.println("参加夏令营");
                break;
            case 2:
                System.out.println("笔记本电脑一台");
                break;
            case 3:
                System.out.println("移动硬盘一个");
                break;
            case 4:// ||
            case 5:
            case 6:
                System.out.println("笔记本一个");
                break;
            default:
                System.out.println("没有奖励");
                break;
        }
    }
}
